package com.yiba.vpn.service;

import com.yiba.vpn.domain.MonitorWeb;
import com.yiba.vpn.repository.MonitorRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MonitorWebService {

    private Logger logger = LoggerFactory.getLogger(MonitorWebService.class);

    @Autowired
    private MonitorRepository monitorRepository;

    public  void vistRecord(String ip) {
        MonitorWeb web = new MonitorWeb();
        web.setVistip(ip);
        monitorRepository.save(web);
    }
}
